package com.wuliu.driver.service;

import com.wuliu.driver.mapper.CarMapper;
import com.wuliu.driver.mapper.CardMapper;
import com.wuliu.driver.pojo.Car;
import com.wuliu.driver.pojo.Card;
import com.wuliu.driver.util.Code;
import com.wuliu.driver.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CardServiceImpl implements CardService{


    @Autowired
    private CardMapper cardMapper;


    @Override
    public List<Card> selectByCardNumber(Integer id) {
        return cardMapper.selectByCardNumber(id);
    }

    @Override
    public int insertCard(Card card) {
        return cardMapper.insertCard(card);
    }

    @Override
    public int deleteByBidInt(Integer bid) {
        return cardMapper.deleteByBidInt(bid);
    }
}
